package edu.zut.cs.software.person.supplier.domain;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.software.teach.Base.domain.BaseEntity;

/**
 * 
 * @author Jianghe.
 *
 */
@Entity
@Table(name = "T_Supplier")
public class Supplier extends BaseEntity<Long> {
	private static final long serialVersionUID = -2411978175041541798L;
	/**
	 * 供货商名字
	 */
	@Column
	String name;
	
	/**
	 * 供货批次
	 */
	@Column
	String number;
	@ManyToOne
	@JoinColumn(name = "T_SupplierCategory_ID")
	SupplierCategory supplierCategory;
	public SupplierCategory getSupplierCategory() {
		return supplierCategory;
	}

	public void setSupplierCategory(SupplierCategory supplierCategory) {
		this.supplierCategory =supplierCategory;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	
	
}
